/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.CarModelDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public interface CarModelInterface {

    ArrayList<CarModelDTO> readByAll();

    CarModelDTO findById(int id);

    ArrayList<CarModelDTO> findByName(String name);

    boolean create(CarModelDTO dto);

    boolean update(CarModelDTO dto);

    boolean delete(CarModelDTO dto);

    boolean delete(int id);
}
